window.define(["ng", "common/js/user-module", "common/js/util-module", "ui.router"], function (angular) {
    var app = angular.module("AuthApp", ["UserModule", "UtilModule", "ui.router"]);
    app.config(function ($stateProvider, $urlRouterProvider) {
        return $stateProvider.state("supadmin", {
          "url": "/supadmin",
          "controller": function ($scope, epModal) {
            var loginInfo = $scope.$parent.loginInfo;
            loginInfo.role = users.Role.valueOf("SUPADMIN");
            return epModal.open("login");
          }
        });
      });
    return app.controller("AuthCtrl", function ($scope, User, $window, $parse, $http, epModal) {
        $scope.roles = ["COORDINADOR", "SECRETARIO", "PROFESOR", "ACUDIENTE"];
        User.getCalificacionesPeriodo({
          "idMateria": 1,
          "idCurso": 1
        });
        $scope.loginInfo = {};
        return $scope.logIn = function () {};
      });
  })